
 const uploadStore = defineStore('upload', () => {
    
        const videoProgress=ref(0)
        const uploadFileList=ref([])
        const setVideoProgress=(num)=>{
            videoProgress.value=num
        }

        const setUploadFileList=(arr)=>{
          uploadFileList.value=arr

        }


      return {setVideoProgress,setUploadFileList,videoProgress,uploadFileList}

})


export default uploadStore;

// 非setup
export function uploadStoreHook() {
  return uploadStore(store);
}